/*
 * Copyright 2007 by LongTop Corporation.
 * Softpack ChuangXin Building 15F, XiaMen, FuJian, PRC 361005
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * LongTop Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with LongTop.
 *
 */
package com.longtop.framework.common;

/**
 * 资源常量文件，用于定义资源键。资源键值对在common/applicationMessage.properties中定义<br>
 * <p/>
 * 
 * @author IntelliWeb Team
 * @version 2.0
 */
public class ResourceConstants {

	// ============================以下定义基础模块的资源信息====================//

	/**
	 * 查询HQL语句不能为空
	 */
	public static final String E_BASE_0000 = "e_base_0000";
	/**
	 * 查询条件个数{0}与查询值个数{1}不相等
	 */
	public static final String E_BASE_0001 = "e_base_0001";
	/**
	 * 查询条件个数{0}与操作符个数{1}不相等
	 */
	public static final String E_BASE_0002 = "e_base_0002";

	// ============================以下定义公共模块的资源信息====================//
	/**
	 * 操作成功
	 */
	public static final String I_COMM_0000 = "i_comm_0000";
	/**
	 * 成功插入{0}条记录
	 */
	public static final String I_COMM_0001 = "i_comm_0001";
	/**
	 * 成功更新{0}条记录
	 */
	public static final String I_COMM_0002 = "i_comm_0002";
	/**
	 * 成功删除{0}条记录
	 */
	public static final String I_COMM_0003 = "i_comm_0003";
	/**
	 * 因为要统计总记录，所以必须设置统计总记录Sql Map语句的声明段id
	 */
	public static final String E_COMM_0004 = "e_comm_0004";

	/**
	 * 数据集{0}不存在
	 */
	public static final String E_COMM_0005 = "e_comm_0005";

	/**
	 * 数据没有发生变化，不需要更新数据库。
	 */
	public static final String I_COMM_0006 = "i_comm_0006";

	// ============================以下定义登陆模块的资源信息====================//

	/**
	 * 用户不存在
	 */
	public static final String W_LOGIN_0000 = "w_login_0000";
	/**
	 * 原密码错误
	 */
	public static final String W_LOGIN_0001 = "w_login_0001";
	/**
	 * 密码修改成功
	 */
	public static final String I_LOGIN_0002 = "i_login_0002";
	/**
	 * 用户禁止登陆本系统
	 */
	public static final String W_LOGIN_0003 = "w_login_0003";
	/**
	 * 用户登陆失败
	 */
	public static final String W_LOGIN_0004 = "w_login_0004";
	/**
	 * 用户登陆成功
	 */
	public static final String W_LOGIN_0005 = "w_login_0005";
	/**
	 * 密码错误
	 */
	public static final String W_LOGIN_0006 = "w_login_0006";

	// ============================以下定义角色管理的资源信息====================//
	/*
	 * 角色权限设置保存失败
	 */
	public static final String E_ROLE_0001 = "e_role_0001";

}
